package com.bs.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bs.dao.CompanyInfoDao;
import com.bs.service.CompanyInfoService;


/**
 * 公司介绍 service
 * @author swp
 *  2016-11-27 18:34:07
 */
@Service
public class CompanyInfoServiceImpl implements CompanyInfoService{

	@Autowired
	CompanyInfoDao companyInfoDao;

	@Override
	public List<Map<String, Object>> getData(Map<String, String> map) {
		if(map==null||map.size()==0) return null;
		return companyInfoDao.getDB(map);
	}

	@Override
	public boolean insertData(Map<String, String> map) {
		if(map!=null&&map.size()>0) return false;
		return companyInfoDao.insert(map);
	}

	@Override
	public boolean updateData(Map<String, String> map) {
		if(map!=null&&map.size()>0) return false;
		return companyInfoDao.update(map);
	}

	@Override
	public boolean deleteData(String id) {
		if(id!=null&&!"".equals(id)) return false;
		return companyInfoDao.delete(id);
	}
}
